﻿using System;

namespace YXY.Identity.Service.OutModel
{
    public class OutModelToken
    {
        public Guid Id { get; set; }
        /// <summary>
        /// 手机号 
        ///</summary>
        public string Phone { get; set; }
        /// <summary>
        /// 有效期
        ///</summary>
        public int Expires { get; set; }
        /// <summary>
        /// 鉴权类型
        ///</summary>
        public string ClientType { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// 过期时间
        /// </summary>
        public DateTime OverdueTime { get { return CreateTime.AddMinutes(Expires); } set { } }
    }
}
